package by.demchenko.sample.services;

import by.demchenko.sample.datamodel.Section;

import javax.transaction.Transactional;
import java.util.List;

public interface SectionService {

    Section get(Integer id);

    @Transactional
    void save(Section section);

    @Transactional
    void saveOrUpdate(Section section);

    @Transactional
    void delete(Integer id);

    List<Section> getAll();
}